package com.zgm.ch06.aop.aspectJ.pointCut._2_1_2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class PointcutDemo {

	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("com/zgm/ch06/aop/aspectJ/pointCut/_2_1_2/_2_1_2-context.xml");
		
		TestBean2 testBean2 = (TestBean2) ac.getBean("testBean2");
		SimpleBean simpleBean = (SimpleBean) ac.getBean("simpleBean");
		
		testBean2.work();
		testBean2.stop();
		
		simpleBean.sayHello();
	}
}
